package com.yh.correct.model;

import java.util.List;

import com.yh.correct.model.vo.Node;

/**
 * 登陆用户类
 * @author Administrator
 *
 */
public class ActiveUser {
	/**
	 * 用户主键
	 */
	private int userid;
	/**
	 * 用户名称
	 */
	private String username;
	/**
	 * 真实姓名
	 */
	private String realname;
	/**
	 * 菜单
	 */
	private List<Node> menus;
	/**
	 * 权限
	 */
	private List<SysPermission> permissions;
	
	public int getUserid() {
		return userid;
	}
	public void setUserid(int userid) {
		this.userid = userid;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public List<Node> getMenus() {
		return menus;
	}
	public void setMenus(List<Node> menus) {
		this.menus = menus;
	}
	public List<SysPermission> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<SysPermission> permissions) {
		this.permissions = permissions;
	}
	@Override
	public String toString() {
		return "ActiveUser [userid=" + userid + ", username=" + username + ", realname=" + realname + ", menus=" + menus
				+ ", permissions=" + permissions + "]";
	}
	
}
